|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectobservations.DomainObject
observations.PhenomenonType
PhenomenonType Is a particular type of phenomenon, e.g.
'bloodpressure' or 'heartrate'. The class is part of the Fowler-patterns
'Measurement' and 'Observation'.
Measurement| Constructor Summary | |
PhenomenonType(java.lang.String name)
Constructs a PhenomenonType object with name. |
|
| Method Summary | |
static PhenomenonType |
get(java.lang.String name)
Searches a type by name. |
java.util.Hashtable |
getMappingTable()
Gives a hashtable of all phenomena. |
java.util.Enumeration |
getPhenomenaEnumeration()
Gives all phenomena for the type. |
Phenomenon |
getPhenomenonIncluding(Quantity quantity)
Searches the phenomenon which includes a particular quantity. |
Phenomenon |
getPhenomenonNamed(java.lang.String name)
Searches a particular phenomenon by name. |
PhenomenonType |
persist()
Saves the type to main memory. |
void |
setPhenomena(java.lang.String[] names)
Sets the valid phenomena, e.g. |
void |
setValidRange(QuantityRange range)
Sets the overall range including all phenomena, e.g. if the valid range is 0 - 200 mm/Hg, there may be two phenomena 'low' and 'high' with ranges 0 - 100 mm/Hg and 100 - 200 mm/Hg. |
boolean |
validRangeIncludes(Quantity quantity)
Tests whether the quantity is included in the types over all range. |
| Methods inherited from class observations.DomainObject |
getName |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PhenomenonType(java.lang.String name)
name - name of the typeDomainObject.DomainObject(String)| Method Detail |
public static PhenomenonType get(java.lang.String name)
name - name of the type
public java.util.Hashtable getMappingTable()
public java.util.Enumeration getPhenomenaEnumeration()
public Phenomenon getPhenomenonIncluding(Quantity quantity)
quantity - quantity to test
public Phenomenon getPhenomenonNamed(java.lang.String name)
name - name of the phenomenon
public PhenomenonType persist()
public void setPhenomena(java.lang.String[] names)
names - phenomena's namespublic void setValidRange(QuantityRange range)
range - the overall range of the typepublic boolean validRangeIncludes(Quantity quantity)
quantity - quantity to test
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||